<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>     

<title>POS收单运营管理平台</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="<s:url value="/css/a.css"/>" type="text/css"
	rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css"
	rel="stylesheet" />


<script type="text/javascript"
	src="<s:url value="/js/jquery-1.9.1.min.js" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/jquery.validate.min.js" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/pwms.validate.js?v13" />"></script>
<script language="javascript" type="text/javascript"
	src="<s:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>

<style type="text/css">
.fieldError {
	color: red;
	text-align: left;
}

.error {
	float: none;
	color: red;
	padding-left: .5em;
	vertical-align: top;
}

table th {
	font-weight: bolder;
	text-align: left;
	background-color: #5599FF;
}
</style>
<script type="text/javascript">
   $(document).ready(function(){
      $("#submitFrom").click(function(){
         var item = $(":radio:checked");
         var len=item.length;
         
         var detail=$("#result_detail").val();
         if(len == 0){
            $("#one").html("请选择一个审核结果");
            return false;
         }
         if(detail == ''){
            $("#two").html("请填写审核意见");
            return false;
         }
         
      });
   });
   
   function checkLength(obj,maxlength){
	    if(obj.value.length > maxlength){
	        obj.value = obj.value.substring(0,maxlength);
	    }
	}
</script>

</head>

<body>
	
		<div class="subpage">
			
				<div class="user_title">
	    		 <h2 class="headline-inquires">POS收单运营管理平台<br />
	    		 <span class="sub-title">

	    		 </span></h2>
	    		</div>
				<s:form id="agent" action="/agentOne/agentAuditingOne.ct" method="post"  theme="simple"  >
				<table width="100%" border="1" cellspacing="0" class="table">
					<tr>
						<td colspan="4" align="center">

							<h2 class="headline-inquires">
								代理商基本信息<br />
								<span class="sub-title"></span>
							</h2>
						</td>
					</tr>
					
					<tr>
						<th colspan="4">代理商基本信息</th>
					</tr>
					<tr>
						<td style="text-align: right;">甲方名称：</td>
						
						<td align="left" class="td_bg" colspan="3">
						<s:property value="#request.agent.realName"/>
						</td>
					</tr><tr>
						<td style="text-align: right;">手机号：</td>
						
						<td class="td_bg">
						<s:property value="#request.agent.mobile"/>
						</td>
					
						<td style="text-align: right;" >账户：</td>
						<td class="td_bg"><s:property value="#request.agent.accountNo"/></td>
						
					</tr>
					<tr>
						<td style="text-align: right;">证件类型：</td>
						<td class="td_bg">
							<s:if test="#request.agent.cardType==\"01\"">身份证</s:if>
							<s:if test="#request.agent.cardType==\"02\"">护照</s:if>
							<s:if test="#request.agent.cardType==\"03\"">军官证</s:if>
							<s:if test="#request.agent.cardType==\"04\"">驾照</s:if>
							<s:if test="#request.agent.cardType==\"05\"">其他</s:if>
							
						 </td>
						<td style="text-align: right;">证件号码：</td>
						
						<td class="td_bg"><s:property value="#request.agent.cardNo"/></td>
					</tr>
					<tr>
						<td style="text-align: right;">组织机构代码：</td>
						
						<td class="td_bg"><s:property value="#request.agent.organizationCode"/></td>
						<td style="text-align: right;">邮政编码：</td>
						
						<td class="td_bg"><s:property value="#request.agent.zipeCode"/></td>
					</tr>
					<tr>
						<td style="text-align: right;">电话号码：</td>
						
						<td class="td_bg"><s:property value="#request.agent.telphone"/></td>
						<td style="text-align: right;">邮箱地址：</td>
						
						<td class="td_bg"> <s:property value="#request.agent.email"/></td>
					</tr>
					<tr>
						<td style="text-align: right;">简称：</td>
						
						<td class="td_bg"><s:property value="#request.agent.shortName"/></td>
						<td style="text-align: right;">性别：</td>
						
						<td class="td_bg">
							<s:if test="#request.agent.sex==\"1\"">男</s:if>
							<s:if test="#request.agent.sex==\"2\"">女</s:if>
						 </td>
					</tr>
					<tr>
						<td style="text-align: right;">营业执照号：</td>
						
						<td class="td_bg"><s:property value="#request.agent.businessLicences"/></td>
						<td style="text-align: right;">税务登记号：</td>
						
						<td class="td_bg"><s:property value="#request.agent.taxRegistrationCertificate"/></td>
					</tr>
					<tr>
						<td style="text-align: right;">业务联系人：</td>
						
						<td class="td_bg"><s:property value="#request.agent.businessPerson"/></td>
						<td style="text-align: right;">业务联系人电话：</td>
						
						<td class="td_bg"><s:property value="#request.agent.businessPhone"/></td>
					</tr>
					<tr>
						
						<td style="text-align: right;">代理商类别：</td>
						
						<td class="td_bg">
							<s:select cssClass="queryWidth" name="agent.agentType" id="orgCode" value="#request.agent.agentType"
								list="#request.agTypeList" listKey="key" listValue="value" disabled="true" />
						 </td>
						 
						 <td style="text-align: right;">业务联系QQ：</td>
						
						<td class="td_bg"><s:property value="#request.agent.qq"/></td>
						
					</tr>
					<tr>
						<td style="text-align: right;">开户行：</td>
						
						<td class="td_bg"><s:property value="#request.agent.bankDeposit"/></td>
						<td style="text-align: right;"> 账户名称：</td>
						
						<td class="td_bg"><s:property value="#request.agent.bankAcctName"/></td>
					</tr>
					<tr>
						<td style="text-align: right;">银行账户：</td>
						
						<td class="td_bg"><s:property value="#request.agent.bankAcctNo"/></td>
						<td style="text-align: right;"></td>
						
						<td class="td_bg"></td>
					</tr>
					<tr>
						<td style="text-align: right;">有效期起始时间：</td>
						
						<td class="td_bg"><s:property value="#request.agent.validStartDate"/></td>
						<td style="text-align: right;">有效期结束时间：</td>
						
						<td class="td_bg"><s:property value="#request.agent.validEndDate"/></td>
					</tr>
					
					<tr>
						<td style="text-align: right;">经营范围：</td>
						<td colspan="3" class="td_bg">
						<s:property value="#request.agent.businessScope"/>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">详细地址：</td>
						<td colspan="3" class="td_bg">
						<s:property value="#request.agent.address"/>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">备注：</td>
						<td colspan="3" class="td_bg">
						<s:property value="#request.agent.remark"/>
						</td>

					</tr>
					
					<s:if test="#request.agent.proList.size() > 0">
					<tr>
						<th colspan="4">代理商拓展范围</th>
					</tr>
					<tr>
						<td colspan="4">
							<table  width="100%">
								<tr>
									<td width="30%">拓展行业</td>
									<td  width="15%">代理商结算费率</td>
									<td  width="15%">代理商分润比例</td>
									<td  width="20%">封顶</td>
									<td  width="20%">商户最低费率</td>
								</tr>
								<s:iterator value="#request.agent.proList" var="agent" status="stat">
									<tr>
										<td align="left">
											<s:property value="#agent.mccTypeName"/>
										</td>
										<td><s:property value="#agent.profitFee"/>% </td>
										<td><s:property value="#agent.profitSettleRate"/>%</td>
										<td><s:property value="#agent.maxFee"/>元</td>
										<td><s:property value="#agent.merchantMinFee"/>%</td>
									</tr>
								</s:iterator>
							</table>
						</td>
					</tr>
					</s:if>
					
					
					
					<tr>
						<th colspan="4">代理商初审</th>
						<s:hidden name="merchant.accountNo" value="%{#request.agent.accountNo}"/>
					</tr>
					<tr>
						<td>审核结果：</td>
						
						<td colspan="3">
							<s:radio id="result_code" name="auditing.result_code" list="#request.auditingMap" listKey="key" listValue="value"></s:radio>
							<strong id="one" style="color:red;"></strong>
						 </td>
					</tr>
					<tr>
						<td align="right">审核意见：</td>
						<td colspan="3"><s:textarea onpropertychange="checkLength(this,150);" oninput="checkLength(this,150);" rows="5" id="result_detail" cssStyle="width:100%;"
								name="auditing.result_detail" />
								<strong id="two" style="color:red;"></strong>
								</td>

					</tr>
					
					<tr>
						<td align="center" colspan="4"><s:submit id="submitFrom" value="确定" /> &nbsp;&nbsp; 
								<input type="reset"" value="取  消"/></td>
					</tr>
					
				</table>
			</s:form>
		</div>
	
</body>
</html>
